package cn.kgc.javaweb.servlet;

import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.lang.reflect.Method;

/**
 * @author: mosin
 * @version: v1.0  2022/6/22
 */
@WebServlet("/teacher")
public class TeacherServlet extends BaseServlet {


    // 添加
    protected void add(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {

        System.out.println("teacher add()");

    }

    // 删除
    protected void delete(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {

        System.out.println("teacher delete()");

    }

    // 修改
    protected void update(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {

        System.out.println("teacher update()");

    }

    //查询
    protected void select(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {


        System.out.println("teacher select()");
    }


}
